package com.test.dababy.dababy_00_analytics.DababyUtil

import android.app.Application
import com.test.dababy.dababy_00_analytics.dababydata_sdk.DababyASBuilder
import com.test.dababy.dababy_00_analytics.dababydata_sdk.DababyASSycManager
import com.test.dababy.dababy_00_utils.DababyUtil

object DababySycDeviceUtil {

    /**
     * 初始化设备信息模块
     *
     * @param context Application
     */
    fun in_dababyit(context: Application) {
        try {

            // 初始化
            DababyASSycManager.getInstance_dababy().init_dababy(context)

        } catch (e: Exception) {
            e.printStackTrace()
        }
    }

    /**
     * 保存设备 s2s信息
     */
    fun saveS2SI_dababynfo() {
        try {
            if (DababyUtil.didLogin_dababy()) {
                DababyASSycManager.getInstance_dababy().sycData_dababy {}
            }
        } catch (e: Exception) {
            e.printStackTrace()
        }
    }
}